while true
do
  ps -fe|grep @CTPAPPNAME@ |grep -v grep
  if [ $? -ne 0 ]
  then
    echo "@CTPAPPNAME@执行启动操作"
    ./@CTPAPPNAME@
    runResult=$?
    if [ $runResult -eq 88 ];then
      echo "@CTPAPPNAME@完成任务，自动停止"
      break
    fi
  else
    echo "@CTPAPPNAME@已经启动了"
    break
  fi
  sleep 1
done
